package com.dmz.book.entitys;

import java.util.Date;

public class AdminsEntity {
    private int id;
    private String adminname;
    private String password;
    private Date lastlogintime;
    private Date registertime;
    private String photo;
    private boolean active;
    private String ip;

    public AdminsEntity() {
    }

    public AdminsEntity(String adminname, String password) {
        this.adminname = adminname;
        this.password = password;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAdminname() {
        return adminname;
    }

    public void setAdminname(String adminname) {
        this.adminname = adminname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getLastlogintime() {
        return lastlogintime;
    }

    public void setLastlogintime(Date lastlogintime) {
        this.lastlogintime = lastlogintime;
    }

    public Date getRegistertime() {
        return registertime;
    }

    public void setRegistertime(Date registertime) {
        this.registertime = registertime;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    @Override
    public String toString() {
        return "AdminsEntity{" +
                "id=" + id +
                ", adminname='" + adminname + '\'' +
                ", password='" + password + '\'' +
                ", lastlogintime=" + lastlogintime +
                ", registertime=" + registertime +
                ", photo='" + photo + '\'' +
                ", active=" + active +
                ", ip='" + ip + '\'' +
                '}';
    }
}
